package com.whuan.hystrix.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
@Slf4j
public class Handler {

    @ExceptionHandler(value = IbestException.class)
    public String handler(){
        log.info(".............................................");
        return "this is handler";
    }
}
